import time
class timeit:
     def __init__(self):
          self.time=0
     def begin(self):
          self.tmp=time.time()
     def end(self):
          self.time+=time.time()-self.tmp